package com.duguo.dynamicmvc.model.statusmessage;


public class StatusMessageImpl implements StatusMessage {

	private int level=0;
	private String title;
	private String message;

	public StatusMessageImpl() {
	}

	public StatusMessageImpl(String message) {
		title="Information";
		this.message = message;
	}

	
	public StatusMessageImpl(String title, String message) {
		this.title = title;
		this.message = message;
	}

	public StatusMessageImpl(int level, String title, String message) {
		this.level = level;
		this.title = title;
		this.message = message;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String toString(){
		return getLevel()+": "+getMessage();
	}
	
}
